<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue@next"></script>
    <title>Document</title>
</head>
<style>

</style>
<body>
  <div id="demo" style="position: relative;">
    <h3>Props：to - string</h3>
    <h3>多个teleport可以将其内容挂载到同一个目标元素,内容追加</h3>
    
    <div id="id-div">
    </div>
    <div class="class-div">
    </div>

    <!-- id class dom元素 需要在teleport组件之上，为了能找到元素 -->
    <div>
      <modal-button></modal-button>
    </div>
    
  </div>
  <script type="module">
    import { ModalButton } from './js/main.js'
    const app = Vue.createApp({
      setup() {
          return {
          }
        }
    });
    app.component('modal-button', ModalButton)
    const vm = app.mount('#demo');
</script>
</body>
</html>